'end': {param_types: [GObject.TYPE_UINT, GObject.TYPE_DOUBLE]},
},
}, class TouchpadSwipeGesture extends GObject.Object {
- _init(allowedModes) {
+ _init(actor, allowedModes) {
super._init();
this._allowedModes = allowedModes;
this._state = TouchpadState.NONE;
schema_id: 'org.gnome.desktop.peripherals.touchpad',
});
- global.stage.connectObject(
- 'captured-event::touchpad', this._handleEvent.bind(this), this);
+ actor.connectObject(
+ 'event::touchpad', this._handleEvent.bind(this), this);
}
_handleEvent(actor, event) {
null);
actor.add_action_full(params.name, params.phase, this._panGesture);
- this._touchpadGesture = new TouchpadSwipeGesture(allowedModes);
+ this._touchpadGesture = new TouchpadSwipeGesture(actor, allowedModes);
this._touchpadGesture.connect('begin', this._beginTouchpadGesture.bind(this));
this._touchpadGesture.connect('update', this._updateTouchpadGesture.bind(this));
this._touchpadGesture.connect('end', this._endTouchpadGesture.bind(this));